package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("procure_details")
public class ProcureDetails {
//    @TableId(type = IdType.AUTO)
//    private  int id;
//    private int parentId;
//    private int commodityId;
//    private int COUNT;
//    private int price;
//    private int subtotal;
@TableId(type = IdType.AUTO)
private Integer id;
    private Integer parentId;
    private Integer commodityId;
    private Integer count;
    private Integer price;
    private BigDecimal subtotal;
    // 商品名
    @TableField(exist = false)
    private String commodityName;

    // 供货商id
    @TableField(exist = false)
    private Integer vendorId;

    // 供货商名字
    @TableField(exist = false)
    private String vendorName;
}
